/*
* @Author: ylq
 * @Date: 2021-08-23 18:03:09
 * @Desc: base
 * @Last Modified by: ylq
 * @Last Modified time: 2022-08-10 18:55:24
 */
import { axios } from '@/utils/axios'

export class BaseService {
  /**
   * 项目接口 request
   * @type {{
   * url:string,method:string,data:any,params:any,headers?:object,
   * get:(url:string,config:import('axios').AxiosRequestConfig)=>Promise<{error:{msg:string,code:0|number,},data:any}>,
   * post:(url:string,data:any,config:import('axios').AxiosRequestConfig)=>Promise<{error:{msg:string,code:0|number,},data:any}>,
   * put:(url:string,data:any,config:import('axios').AxiosRequestConfig)=>Promise<{error:{msg:string,code:0|number,},data:any}>
   * delete:(url:string,config:import('axios').AxiosRequestConfig)=>Promise<{error:{msg:string,code:0|number,},data:any}>
   * }}
   */
  request = axios
}
